package nl.Viewer.ViewManager.Controllers;

import nl.Viewer.SerializedObjects.DataObject;
import nl.Viewer.SerializedObjects.Modality;
import nl.Viewer.SerializedObjects.Visualization;
import nl.Viewer.Sessions.ClientSideSession;
import nl.Viewer.ViewManager.Models.DataStores.ZoomifyDataStore;

/**
 * The implementation of the controller which is very similar to the ImageAsPlane controller, but the datastore is
 * replaced with a Zoomify data store, supporting rendered images of planes reconstructions to be built up from Zoomify
 * tiles
 * 
 * @see GenericController
 * 
 * @author Jeroen Verschuur
 * 
 */

public class ZoomifyImageAsPlaneController extends ImageAsPlaneController {
   /**
    * 
    */
   private static final long serialVersionUID = -2935450713881817671L;

   public ZoomifyImageAsPlaneController( Visualization v, Modality modality, ClientSideSession session,
         String outputType ) {
      // the ImageAsPlaneController will set all necessary views
      super( v, modality, session, outputType );
   }

   public void createNewDataStore( DataObject dataObject ) {
      dataModel.createNewDataStore( new ZoomifyDataStore( dataObject ) );
   }

}
